





<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input type="text" name="search_data"  placeholder="名称" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <button class="layui-btn"  id="search"  url="{:url('currency_list')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
        <ob_link><a  href="{:url('currencyAdd')}" style="color: white">   <button class="layui-btn" >新 增</button></a></ob_link>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>

            <th>图标</th>
            <th>名称</th>
            <th>充值</th>
            <th>提现</th>
            <th>转账</th>
            <th>兑换</th>
            <th>划转</th>
            <th>其他</th>
            <th>操作</th>
        </thead>
        {notempty name='list'}
        <tbody>
        {volist name='list' id='vo' key="k"}
        <tr>
            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo.id}'><i class="layui-icon">&#xe605;</i></div>
            </td>

            <td> <a href="{$vo.cover_id|get_picture_url}" target="_blank"><img class="admin-list-img-size" src="{$vo.cover_id|get_picture_url}"/></a></td>

            <td>
                <div><label>是否开启:</label><span>     <ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' =>(int)!$vo['status']))}"> {$vo.status_text}</a></ob_link></span></div>
                <div>  <label>缩写代号:</label><span>{$vo.symbol}</span></div>
                <div><label>中文名字:</label><span>{$vo.zh_name}({$vo.name})</span></div>
                <div>  <label>是否数字货币:</label><span>{if condition="$vo.is_currency eq 1"}是{else/}否{/if}</span></div>
            </td>
            <td>
                <div><label>是否开启:</label><span> {if condition="$vo['is_recharge'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_recharge' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_recharge' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div>  <label>范围:</label><span>{$vo.recharge_min}~{$vo.recharge_max}</span></div>
                <div><label>倍数:</label><span>{$vo.recharge_mult}</span></div>
                <div>  <label>手续费:</label><span>{$vo.recharge_poundage}</span></div>
            </td>
            <td>
                <div><label>是否开启:</label><span> {if condition="$vo['is_withdrwal'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_withdrwal' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_withdrwal' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div>  <label>范围:</label><span>{$vo.withdrwal_min}-{$vo.withdrwal_max}</span></div>
                <div><label>倍数:</label><span>{$vo.withdrwal_mult}</span></div>
                <div>  <label>手续费:</label><span>{$vo.withdrwal_poundage}</span></div>
                <div>  <label>开启时间:</label><span>{$vo.withdrwal_time}</span></div>
            </td>
            <td>
                <div><label>是否开启:</label><span> {if condition="$vo['is_transfer'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div>  <label>范围:</label><span>{$vo.transfer_min}-{$vo.transfer_max}</span></div>
                <div><label>倍数:</label><span>{$vo.transfer_mult}</span></div>
                <div>  <label>手续费:</label><span>{$vo.transfer_poundage}</span></div>
                <div>  <label>转帐限制:</label><span>{$vo.transfer_limit}</span></div>
            </td>
            <td>
                <div><label>是否开启:</label><span> {if condition="$vo['is_exchange'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_exchange' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_exchange' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div>  <label>范围:</label><span>{$vo.exchange_min}-{$vo.exchange_max}</span></div>
                <div><label>倍数:</label><span>{$vo.exchange_mult}</span></div>
                <div>  <label>手续费:</label><span>{$vo.exchange_poundage}</span></div>
                <div>  <label>每日最高:</label><span>{$vo.exchange_daily_limit}</span></div>
            </td>
            <td>
                <div><label>是否开启:</label><span> {if condition="$vo['is_paddle'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_paddle' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_paddle' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div>  <label>范围:</label><span>{$vo.paddle_min}-{$vo.paddle_max}</span></div>
                <div><label>倍数:</label><span>{$vo.paddle_mult}</span></div>
                <div>  <label>手续费:</label><span>{$vo.paddle_poundage}</span></div>
                <div><label>总包划转:</label><span> {if condition="$vo['paddle_to_csj'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_csj' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_csj' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div><label>店铺划转:</label><span> {if condition="$vo['paddle_to_shop'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_shop' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_shop' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
                <div><label>法币划转:</label><span> {if condition="$vo['paddle_to_exchange'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_exchange' =>0))}">  <span class='badge bg-green'>是</span></a></ob_link>

                {else/}
                <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'paddle_to_exchange' => 1))}">  <span class='badge bg-red'>否</span></a></ob_link>

                {/if}</span></div>
            </td>
            <td>
                <div><label>创建时间:</label><span>{$vo.create_time|date='Y-m-d H:i:s' ,###}</span></div>
                <div>  <label>更新时间:</label><span>{$vo.update_time|date='Y-m-d H:i:s' ,###}</span></div>
            </td>

            <td class="td-manage">
                <!--<a onclick="member_stop(this,'10001')" href="javascript:;"  title="启用">-->
                <!--<i class="layui-icon">&#xe601;</i>-->
                <!--</a>-->
                <ob_link><a title="编辑"  href="{:url('currencyEdit', array('id' => $vo['id']))}" >
                    <i class="layui-icon">&#xe642;</i>
                </a></ob_link>
                <ob_link><a title="删 除" class="ajax-get"  href="{:url('setStatus', array('ids' => $vo['id'], 'status' => -1))}" >
                    <i class="layui-icon">&#xe640;</i>
                </a></ob_link>

            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list'}   {$list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('form', function(){
        form = layui.form;

    });
    function delAll (argument) {

        var data = tableCheck.getData();


        layer.confirm('确认要删除吗？',function(index){
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url="{:url('setStatus')}";
            $.post(url,{ids:data,status:-1},function (d) {
                if(d.code==1){
                    $(".layui-form-checked").not('.header').parents('tr').remove();
                    layer.msg('删除成功', {icon: 1});

                }else{
                    layer.msg(d.msg);

                }
            },'json');



        });
    }
</script>

</body>

</html>


